<!DOCTYPE html PUBLIC"-// W3C//DTD XHTML 1.0 Transitional//EN"" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0061)http://www.free-wordpress-theme.net/demo/?themedemo=persimmon -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">  
<head>    
<meta name="layout" content="mainlayout" />
</head>
  <body>
      <div id="pbody">
        <hr>
        <div id="contentDiv">
   			<div class="gpost" id="post-${post.id}">
            <h2 class="stitle">${post.title}</h2>
            <div class="entry">
              <div class="thumb">
              </div>
              <p>${post.content} &nbsp;
              </p>	
              <p>
                Poids : 
              	<label id="likeLab${post.id}" style="margin-right:20px">
   						 ${post.likeUsers.size()}
   				</label>
   				<g:if test="${session.user}">
	  			    <g:remoteLink action="like" update="likeLab${post.id}" controller="post" id="${post.id}">
		              J'aime
		            </g:remoteLink>
	            </g:if>
	            <g:each id="comments" in="${post.comments}" var="comment">
	            	<p>${comment.user.login} : ${comment.content}</p>
	            </g:each>
	            <g:if test="${session.user}">
	            	<g:form action="comment" controller="post" method="post" id="${post.id}">
		            	<g:textArea name="comment" />
		            	<input type="submit" value="Envoyer" />
		            </g:form>
	            </g:if>
  			  </p>

            </div>	

          </div>

          
        </div>

  </body></html>